$OpenBSD: patch-source_config_icu-config-bottom,v 1.9 2016/12/05 16:15:56 ajacoutot Exp $
--- source/config/icu-config-bottom.orig	Fri Sep  9 23:28:18 2016
+++ source/config/icu-config-bottom	Thu Dec  1 17:22:48 2016
@@ -5,8 +5,8 @@
 ## Copyright (c) 2002-2013, International Business Machines Corporation and
 ## others. All Rights Reserved.
 
-ICUUC_FILE="${libdir}/${ICULIBS_COMMON_LIB_NAME}"
-ICUUC_FILE_A="${libdir}/${ICULIBS_COMMON_LIB_NAME_A}"
+ICUUC_FILE="${ICULIBS_COMMON_LIB_NAME}.*.*"
+ICUUC_FILE_A="${ICULIBS_COMMON_LIB_NAME_A}"
 
 #  echo ENABLE RPATH $ENABLE_RPATH and RPATHLDFLAGS=${RPATH_LDFLAGS}
 if [ "x$PKGDATA_MODE" = "x" ]; then
@@ -98,7 +98,8 @@ usage()
 ## Check the sanity of current variables
 sanity()
 {
-    if [ ! -f "${ICUUC_FILE}" -a ! -f "${ICUUC_FILE_A}" ] && [ ${IGNORE_ICUUC_FILE_CHECK} = "no" ] && [ ${SANITY} = "sane" ];
+	libcnt=`find ${libdir} -name ${ICUUC_FILE} -o -name ${ICUUC_FILE_A} | wc -l`
+    if [ ${libcnt} -lt 1 ] && [ ${IGNORE_ICUUC_FILE_CHECK} = "no" ] && [ ${SANITY} = "sane" ];
     then
 	echo "### $ME: Can't find ${ICUUC_FILE} - ICU prefix is wrong."  1>&2
 	echo "###      Try the --prefix= option " 1>&2
